// 全局getter,返回store中指定的state数据
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  authName: state => state.user.authName,
  permission_routes: state => state.permission.routes,
  roles: state => state.user.roles
}
export default getters
